package com.ggs.rg.ybjb.adminmodule.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ggs.rg.ybjb.adminmodule.mapper.TOrderMapper;
import com.ggs.rg.ybjb.pojomodule.pojo.TOrder;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author cxw
 * @since 2021-11-02
 */
public interface TOrderService extends IService<TOrder> {

    //获取所有订单(该方法兼容获取所有订单,未付款,已付款订单)
    public JSONObject selectOrders(Integer pagesNumber,Integer status);

    //根据oid获取指定订单,搜索
    public JSONObject selectTOrderById(Long oid);

    //根据oid获取指定已付款订单详情
    public JSONObject selectTOrderDetailById(Long oid);

    //根据oid获取指定未付款订单详情
    public JSONObject selectUnpaidTOrderDetailById(Long oid);

    //根据手机号获取oid
    public List<TOrder> selectTOrderByPhone(String phone);
}
